package com.sxt.sys.config;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

import com.baomidou.mybatisplus.extension.plugins.PaginationInterceptor;

@Configuration
public class MybatisPlusAutoConfiguration {

	/**
	 * 分页插件的配置
	 * @return
	 */
	@Bean
	public PaginationInterceptor getPaginationInterceptor() {
		PaginationInterceptor paginationInterceptor=new PaginationInterceptor();
		return paginationInterceptor;
	}
	
}
